package com.desmart.renjiao.login;

import com.lemon.library.bean.BaseResponse;
import com.lemon.library.mvp.BaseModel;
import com.lemon.library.mvp.BasePresenter;
import com.lemon.library.mvp.BaseView;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;


public interface Login {

    interface LoginM extends BaseModel{

        Observable<ResponseBody> login(RequestBody string);

    }

    interface LoginV extends BaseView{


        void onLoginSuccess();
    }

    abstract class LoginP extends BasePresenter<LoginM,LoginV>{

        abstract void login(String name,String password);

    }

}
